//
//  CityBrandListCell.m
//  cityStar
//
//  Created by joyban on 14-12-23.
//  Copyright (c) 2014年 tiny. All rights reserved.
//

#import "CityBrandListCell.h"
#import "UIImageView+WebCache.h"

@implementation CityBrandListCell

+(CGFloat)heightOfTableCell
{
    return 117;
}

-(void)configWithBrandDetail:(BrandDetail *)brand
{
    [self.BrandImage sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://api.icszx.com/image/c/id/%@/w/404/h/232/m/0",brand.main]] placeholderImage:[UIImage imageNamed:@"品牌列表_主图"]];
    [self.heardImage sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://api.icszx.com/image/c/id/%@/w/100/h/50/m/0",brand.image]] placeholderImage:[UIImage imageNamed:@"品牌logo_列表"]];
    self.nameLabel.text = brand.name;
}

- (void)awakeFromNib {
    // Initialization code
    self.backGroundView.layer.borderColor = [UIColor colorWithWhite:0.719 alpha:1.000].CGColor;
    self.backGroundView.layer.borderWidth = 0.5;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
